﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminterOrder.aspx.cs" Inherits="TakeoutMangesWeb.AdminterOrder" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .txtPNM {
        width:100px;
        margin:10px;
        border-radius:10px;
        }
        
        .layui-btn {
        margin-left:10px;
        }
    </style>
    <script type="text/javascript">
        
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><form runat="server">
    <asp:TextBox ID="TextBox1" class="txtONM" runat="server" Height="25px" Width="150px"></asp:TextBox><asp:Button ID="Button1" class="layui-btn layui-btn-warm"  runat="server" Text="搜索" onclick="Button1_Click" Height="30px" Width="60px"/>
       <asp:Button ID="Button2" class="layui-btn"  runat="server" Text="查看全部"  Height="30px" Width="84px" OnClick="Button2_Click"/>
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate><table style="margin:0 auto" class="layui-table layui-form">
                <th>订单编号</th>
                <th>订单时间</th>
                <th>订单状态</th>
                <th>所属用户</th>
                <th>订单备注</th>
                <th>状态</th>
                <th>操作</th>
                </HeaderTemplate>
        <ItemTemplate>
          <tr>
             <td><%#Eval("OrderID") %></td>
             <td><%#Eval("OrderDate") %></td>
             <td><a class="layui-btn layui-btn-normal layui-btn-mini"><%#Eval("OrderState").ToString()=="0"?"进行中":"已完成" %></a></td>
             <td><%#Eval("UserID") %></td>
             <td><%#Eval("Remark") %></td>
             <td><%#Eval("Isdelete").ToString()=="0"?"未删除":"已删除"%></td>
             <td><a class="layui-btn layui-btn-danger" href="/MyHandler/DeleteOrderHandler.ashx?id=<%#Eval("OrderID") %>">删除</a></td>
         </tr></ItemTemplate>
        <FooterTemplate></table></FooterTemplate>
    </asp:Repeater>
         </form> 
</asp:Content>
